
---- 测试环境亚洲集群 Asia1
---- 需要接入dc_gate的业务，要在这里配置路由
---- 目前测试环境已经接入 acc*3 部分


local ns_config = {
	_VERSION = '0.12.1',

	__DAY_TIME__    = 86400,

	------------ servers ---------
	servers = {
		--- mysql
		["/dc2/"] = {
			--- 新账号解耦数据 Asia1
			acc_new      = { select = { select_mod = 100, }, },
			acc_business = { select = { select_mod = 100, }, },
			acc_order    = { select = { select_mod = 10,  }, },
		},
	},

	call_count_rate = 200,   --log rate
};



function ns_config.init()
	local acc_new_      = ns_config.servers[ "/dc2/" ].acc_new
	local acc_business_ = ns_config.servers[ "/dc2/" ].acc_business
	local acc_order_    = ns_config.servers[ "/dc2/" ].acc_order

	--- 集群部分
	acc_new_.ip_allow      = { check = 1, list = '120.24.64.132 183.240.204.116', }
	acc_business_.ip_allow = { check = 1, list = '120.24.64.132 183.240.204.116', }
	acc_order_.ip_allow    = { check = 1, list = '120.24.64.132 183.240.204.116', }

	for i=0, 99 do
		if  i<50 then
			acc_new_.select[i]      = { ip='120.24.64.132', port=8021 }    --[  0 ~~ 49 ]
			acc_business_.select[i] = { ip='120.24.64.132', port=8021 }    --[  0 ~~ 49 ]
		else
			acc_new_.select[i]      = { ip='120.24.64.132', port=8022 }    --[ 50 ~~ 99 ]
			acc_business_.select[i] = { ip='120.24.64.132', port=8022 }    --[ 50 ~~ 99 ]
		end
	end

	for i=0, 9 do
		if  i<5 then
			acc_order_.select[i]    = { ip='120.24.64.132', port=8021 }    --[ 0 ~~ 4 ]
		else
			acc_order_.select[i]    = { ip='120.24.64.132', port=8022 }    --[ 5 ~~ 9 ]
		end
	end

end


ns_config.init()
return ns_config;

